﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="moretoon.aspx.cs" Inherits="ShareMarking.Web.admin.EnterPrise.Employee.moretoon" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script type="text/javascript" src="/scripts/jquery/jquery-1.10.2.min.js"></script>
    <script type="text/javascript" src="/scripts/jquery/Validform_v5.3.2_min.js"></script>
    <script type="text/javascript" src="/scripts/lhgdialog/lhgdialog.js?skin=idialog"></script>
    <script type="text/javascript" src="/scripts/datepicker/WdatePicker.js"></script>
    <script type="text/javascript" src="/scripts/swfupload/swfupload.js"></script>
    <script type="text/javascript" src="/scripts/swfupload/swfupload.queue.js"></script>
    <script type="text/javascript" src="/scripts/swfupload/swfupload.handlers.js"></script>
    <script type="text/javascript" charset="utf-8" src="/editor/kindeditor-min.js"></script>
    <script type="text/javascript" charset="utf-8" src="/editor/lang/zh_CN.js"></script>
    <script type="text/javascript" src="/admin/js/layout.js"></script>
    <link href="/admin/skin/default/style.css" rel="stylesheet" type="text/css" />
    <link href="/scripts/select2/select2-3.5.1/select2.css" rel="stylesheet" type="text/css" />
    <link href="/scripts/select2/skin/select2_ext.css" rel="stylesheet" type="text/css" />
    <script src="/scripts/select2/select2-3.5.1/select2.js" type="text/javascript"></script>
    <script src="/scripts/select2/select2-3.5.1/select2_locale_zh-CN.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            //初始化表单验证
            $("#form1").initValidform();
            //初始化编辑器
            var editor = KindEditor.create('.editor', {
                width: '98%',
                height: '350px',
                resizeType: 1,
                uploadJson: '/tools/upload_ajax.ashx?action=EditorFile&IsWater=1',
                fileManagerJson: '/tools/upload_ajax.ashx?action=ManagerFile',
                allowFileManager: true
            });
            var editorMini = KindEditor.create('.editor-mini', {
                width: '98%',
                height: '250px',
                resizeType: 1,
                uploadJson: '/tools/upload_ajax.ashx?action=EditorFile&IsWater=1',
                items: [
				'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
				'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
				'insertunorderedlist', '|', 'emoticons', 'image', 'link']
            });
            //初始化上传控件
            $(".upload-img").each(function () {
                $(this).InitSWFUpload({ sendurl: "/tools/upload_ajax.ashx", flashurl: "/scripts/swfupload/swfupload.swf", filetypes: "*.xls;*.xlsx" });
            });
            $(".upload-album").each(function () {
                $(this).InitSWFUpload({ btntext: "批量上传", btnwidth: 66, single: false, water: true, thumbnail: true, filesize: "2048", sendurl: "/tools/upload_ajax.ashx", flashurl: "/scripts/swfupload/swfupload.swf", filetypes: "*.jpg;*.jpge;*.png;*.gif;" });
            });
            $(".attach-btn").click(function () {
                showAttachDialog();
            });
            //设置封面图片的样式
            $(".photo-list ul li .img-box img").each(function () {
                if ($(this).attr("src") == $("#hidFocusPhoto").val()) {
                    $(this).parent().addClass("selected");
                }
            });
        });
        //创建附件窗口
        function showAttachDialog(obj) {
            var objNum = arguments.length;
            var attachDialog = $.dialog({
                id: 'attachDialogId',
                lock: true,
                max: false,
                min: false,
                title: "上传附件",
                content: 'url:/admin/dialog/dialog_attach.aspx',
                width: 500,
                height: 180
            });
            //如果是修改状态，将对象传进去
            if (objNum == 1) {
                attachDialog.data = obj;
            }
        }
        //删除附件节点
        function delAttachNode(obj) {
            $(obj).parent().remove();
        }
</script>
</head>
<body class="mainbody">
    <form id="form1" runat="server">
    <!--内容-->
    <div class="tab-content">
        <dl>
            <dt>导入文件</dt>
            <dd>
                <asp:TextBox ID="txt_filename" runat="server" CssClass="input normal upload-path readonly"
                    nullmsg="请选择要上传的文件" errormsg="" sucmsg=" " datatype="*"></asp:TextBox>
                <div class="upload-box upload-img">
                </div>
                <span class="Validform_wrong_simple">*</span>
            </dd>
        </dl>
        <dl>
            <dd style="margin-left: 0px; text-align: center;">
                <asp:Button ID="btnSubmit" runat="server" Text="确认导入" CssClass="btn" OnClick="btnSubmit_Click" />
            </dd>
        </dl>
        <dl>
            <dd style="margin-left: 0px; text-align: center;">
            <span class="Validform_wrong_simple">提示：导入数据之前，请使用已提供的模板(*.xls结尾的模板)导入数据。不添加回车且不重复导入门店名称相同的数据，否则就会叠加到失败条数。</span>             
            </dd>
        </dl>
    </div>
    <!--/内容-->
    </form>
</body>
</html>

